class

BitShares::Crypto::Aes256

Inherits Reference < Object

Constructors

new(key : Bytes, iv : Bytes, padding : Bool = false, name : String = "aes-256-cbc")
Source

Class methods

fromSeed(seed)

=> 根据 seed 构造 Aes 对象

Source
fromSha512(hash512hex)

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

Source

Instance methods

decrypt(data)
Source
encrypt(data)
Source