PICE 1.0.0-STABLE
See the version list below for details.
dotnet add package PICE --version 1.0.0-STABLE
NuGet\Install-Package PICE -Version 1.0.0-STABLE
<PackageReference Include="PICE" Version="1.0.0-STABLE" />
paket add PICE --version 1.0.0-STABLE
#r "nuget: PICE, 1.0.0-STABLE"
// Install PICE as a Cake Addin
#addin nuget:?package=PICE&version=1.0.0-STABLE&prerelease
// Install PICE as a Cake Tool
#tool nuget:?package=PICE&version=1.0.0-STABLE&prerelease
PICE
NOTICE: This Project is only intended for U.S.A (United States of America) Residents, if you are not of the USA you are prohibited to use this project. If you are a resident, then the project is licensed under a Modified Apache license 2.0.
This Project is an experiment, it is recommended that you do not use it for anything big
Encrypt strings using pictures
v 1.0.0-STABLE
PICE (meaning: PICture Encryption)
Languages supported so far:
- C#
Currently working on:
- Making It be able to use a image file thats smaller than string
- randomly generated image files
- read and write files without having to use
File.WriteAllBytes
andFile.ReadAllBytes
(new syntax is going to bePICEENCRYPT.EncryptFile(img, string, file)
andPICEENCRYPT.DecryptFile(img, file)
)
How it works
PICE Encodes a string with utf32 then uses the rgba values of each pixel in a image file to encrypt the encoded string.
DOCS
C#
Download from Github NuGet → dotnet add PROJECT package PICE
Download with NuGet PM → Install-Package PICE
(NuGet Will be updated before itch.io and github page)
USE 1.0.0-STABLE, DO NOT USE 1.0.0-1.0.7 THEY WILL NOT WORK
Encrypt and decrypt a string example →
using System;
using PICE;
class PICETEST {
static void Main(string[] args) {
//make sure the area of the picture is bigger than the length of the string, It will cause errors if not!
//encrypts data using image
byte[] myEncryption = PICEENCRYPT.Encrypt("./myimg.png" /*get image path*/, "Hello, World")
//use same image file to decrypt
string deCrypt = PICEENCRYPT.Decrypt("./myimg.png", myEncryption);
}
}
Encrypt a string to file →
using System;
using System.IO;
using PICE;
class PICETEST {
static void Main(string[] args) {
//make sure the area of the picture is bigger than the length of the string, It will cause errors if not!
//encrypts data using image
byte[] myEncryption = PICEENCRYPT.Encrypt("./myimg.png" /*get image path*/, "Hello, World")
File.WriteAllBytes("./encryptedfile.pice" /* your encrypted files path */, myEncryption);
//use same image file to decrypt
string deCrypt = PICEENCRYPT.Decrypt("./myimg.png", File.ReadAllBytes("./encrypdedfile.pice") /* reads the encrypted file and decrypts it*/);
}
}
more
Join my discord programming server! - https://discord.gg/NVm6Rd5
For more Nuget Downloads - https://www.nuget.org/packages/PICE/
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- System.Drawing.Common (>= 4.7.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0 | 527 | 10/5/2020 |