mirror of
https://github.com/cupcakearmy/occulto.git
synced 2025-09-11 07:40:44 +00:00
added utils and hashing
This commit is contained in:
16
src/index.ts
16
src/index.ts
@@ -1,14 +1,20 @@
|
||||
import RSA_Internal from './RSA'
|
||||
import Symmetric_Internal from './Symmetric'
|
||||
import H from './Hash'
|
||||
import R from './RSA'
|
||||
import S from './Symmetric'
|
||||
import U from './Util'
|
||||
|
||||
export const RSA = RSA_Internal
|
||||
export const Symmetric = Symmetric_Internal
|
||||
export const RSA = R
|
||||
export const Symmetric = S
|
||||
export const Hash = H
|
||||
export const Util = U
|
||||
|
||||
|
||||
export default {
|
||||
RSA,
|
||||
Symmetric,
|
||||
Hash,
|
||||
Util,
|
||||
}
|
||||
|
||||
// Require node 11
|
||||
if (parseInt(process.versions.node.split('.')[0]) < 10) throw new Error('Node 10 or higher is required')
|
||||
if (parseInt(process.versions.node.split('.')[0]) < 11) throw new Error('Node 11 or higher is required')
|
Reference in New Issue
Block a user