UNPKG
@logismika/crypto
Version:
latest (0.5.0-a3)
0.5.0-a3
0.5.0-a2
0.5.0-a1
0.4.1
0.4.0
0.3.1
0.3.0
0.2.3
0.2.2
Crypto algorithms library
github.com/Logismika/crypto
Logismika/crypto
@logismika/crypto
/
build
/
types
/
encrypt.d.ts
7 lines
(6 loc)
•
254 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
Options
}
from
"./options"
;
export
interface
EncryptedData
{
readonly
length
:
number
;
readonly
bytes
:
Uint8Array
; }
export
declare
const
encrypt
:
(
key
:
string
|
Uint8Array
,
data
:
Uint8Array
,
options
?:
Options
) =>
Promise
<
EncryptedData
>;