class BitShares::Crypto::Aes256

Defined in:

bitshares-crystal/crypto.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(key : Bytes, iv : Bytes, padding : Bool = false, name : String = "aes-256-cbc") #

[View source]

Class Method Detail

def self.fromSeed(seed) #

=> 根据 seed 构造 Aes 对象


[View source]
def self.fromSha512(hash512hex) #

=> 根据摘要构造 Aes 对象 => hash512hex - SHA512的16进制摘要(128字节)


[View source]

Instance Method Detail

def decrypt(data) #

[View source]
def encrypt(data) #

[View source]