cryptint
Encryption functions for int and bigint values
Repository
dverite/cryptint
https://github.com/dverite/cryptint
Source
cryptint-1.0.0.tar.gz
cryptint-1.0.0.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
cryptint | 1.0.0 | UTIL | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4450 | cryptint | No | Yes | No | Yes | No | Yes | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0.0 | 1817161514 | cryptint | - |
| RPM | PIGSTY | 1.0.0 | 1817161514 | cryptint_$v | - |
| DEB | PIGSTY | 1.0.0 | 1817161514 | postgresql-$v-cryptint | - |
Build
You can build the RPM / DEB packages for cryptint using pig build:
Install
You can install cryptint directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
SKIP32 (32-bit integer encryption)
Block cipher with 24 rounds based on Skipjack. Encrypts 32-bit values with an 80-bit (10-byte) key.
Roundtrip example:
XTEA (64-bit integer encryption)
Block cipher with 64 rounds. Encrypts 64-bit values with a 128-bit (16-byte) key.
Functions Reference
| Function | Description |
|---|---|
skip32_encrypt(int, bytea) | Encrypt int4 with 10-byte key |
skip32_decrypt(int, bytea) | Decrypt int4 with 10-byte key |
xtea_encrypt(bigint, bytea) | Encrypt bigint with 16-byte key |
xtea_decrypt(bigint, bytea) | Decrypt bigint with 16-byte key |
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)