Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

hgmich/const-time-enc-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

const_time_enc

Build Status Latest Version Coverage Status

A crate containing a Rust port of ParagonIE's constant time encodings for PHP. No extra dependencies.

WARNING

As per the terms of the license, no guarantee of correctness, fitness for use, or acceptance of liability is made. I am not a professional cryptographer and I nor anyone else have audited this code. All use is strictly at your own risk.

The performance will already be significantly worse than any lookup-based hex/base64 encoding, but be aware that since this library does not have or intend to have unsafe code, it may not be suitably performant for your usecase.

FEATURES

  • Base64 encoding
  • Base64 decoding
  • Hex (base16) encoding
  • Hex (base16) decoding
  • Base32 encoding
  • Base32 decoding
  • Base32 (hex variant) encoding
  • Base32 (hex variant) decoding
  • #![no_std] support

About

A Rust port of the non-lookup-table-based binary encoder/decoders from https://github.com/paragonie/constant_time_encoding

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages