[PHP Extension] Zodium: A libsodium OOP wrapper.

in #utopian-io6 years ago (edited)


New Project: Zodium PHP Extension.

This project is a PHP extension, written with Zephir to wrap the libsodium library in a object-oriented layer.

Basically, it aims to provide a clean, easy and safe alternative to the original bindings of the cryptographic library.

At this point, three API's are already available:

  • Hashing with BLAKE2b.
  • AEAD (Advanced Encryption with Associated Data).
  • SecretBox (Secret-key authenticated encryption with XSalsa20 and Poly1305).


The library aims to be really easy to use.







Technology Stack:

  • About libsodium:

Sodium is a modern, easy-to-use software library for encryption, decryption, signatures, password
hashing and more.

  • About Zephir:

Zephir, an open source, high-level language designed to ease the creation and maintainability of
extensions for PHP with a focus on type and memory safety.


Current features to be included are:

  • Constant-time helpers and safe evaluation of sensitive values.
  • Public-key Encryption.
  • Stand-alone message authentication.
  • Bind Zephir optimizers to calls on the libsodium directly.
  • Documentation
  • .phpt tests.

How to contribute?

  • Join the PHP discussions over the Discord PHP channel @ SteemDevs
  • Contact Telegram
  • Open an Issue
  • Engage on the post comments.

Posted on Utopian.io - Rewarding Open Source Contributors


Hey @hernandev! Thank you for the great work you've done!

We're already looking forward to your next contribution!

Fully Decentralized Rewards

We hope you will take the time to share your expertise and knowledge by rating contributions made by others on Utopian.io to help us reward the best contributions together.

Utopian Witness!

Vote for Utopian Witness! We are made of developers, system administrators, entrepreneurs, artists, content creators, thinkers. We embrace every nationality, mindset and belief.

Want to chat? Join us on Discord https://discord.me/utopian-io

Thank you for your contribution.

Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.


Updated with the coolest code highlight ever!!!


Isso é muito nerd pra mim... Seria uma implementação de segurança de dados pra arquivos básicos de criptografia?

projeto #ptgram power | faça parte | grupo steemit brasil

Isso é uma biblioteca básica de criptografia @alyaugusto.

Basicamente ela tem várias funcionalidades, entre elas criptografia com chaves publicas e privadas e também com chaves secretas.

Cada módulo é usado para uma função diferente dentro do mundo da criptografia.

Essa biblioteca, libsodium já existe no PHP mas a interface de uso dela nõa é orientada a objetos.

Esse meu trabalho permite uma interface mais intuitiva na hora de usar.


Coin Marketplace

STEEM 0.30
TRX 0.11
JST 0.030
BTC 67773.95
ETH 3733.37
USDT 1.00
SBD 3.69