Download the PHP package ahtishamashraf/astra512-ffi without Composer
On this page you can find all versions of the php package ahtishamashraf/astra512-ffi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package astra512-ffi
FFI bindings for ASTRA-512 (research SIV-style AEAD) with key management and password-based key derivation helpers.
⚠️ This is research cryptography. Do not use in production until independent review.
Install
Native library
The FFI loader searches:
1) explicit path you pass to Astra512::create($path)
2) ASTRA512_LIB
env var (absolute path)
3) vendored bin/<platform>/
4) system names: libastra512.so
/ libastra512.dylib
/ astra512.dll
Use with a random 32-byte key
Use with a password (derives a 32-byte key via Argon2id)
About salt
- Encryption itself does not need a salt or nonce (ASTRA-512 is SIV-style and deterministic).
- Salt is only for password-based key derivation (Argon2id). Store the salt alongside the ciphertext so you can re-derive the same key to decrypt.
Helpers
Key::generate()
→ 32 random bytesKey::save($path, $key)
/Key::load($path)
Password::deriveKey($password, $opslimit=?, $memlimit=?)
→ returns[salt, key]
Password::deriveKeyWithSalt($password, $salt, ...)
→ returnskey
See examples/
for complete flows.
astra512-ffi
All versions of astra512-ffi with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-ffi Version *
ext-sodium Version *
ext-ffi Version *
ext-sodium Version *
The package ahtishamashraf/astra512-ffi contains the following files
Loading the files please wait ....