class Encryptor

Defined in:

encryptor.cr

Constant Summary

CONFIG = Configuration.new
MODE = "aes-256-cbc"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.config(&) #

[View source]

Instance Method Detail

def decrypt(base64token : String) #

decodes token and returns plaintext


[View source]
def encrypt(plaintext : String) #

Returns Base64 encoded encrypted string


[View source]