pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/deeper-x/securefile

0f045c7e0.css" /> GitHub - deeper-x/securefile: Tiny golang library for file encryption and decryption (AES-GCM). Based on crypto/cipher, crypto/rand, crypto/sha1, crypto/pbkdf2 · GitHub
Skip to content

deeper-x/securefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

securefile is a simple golang library for encrypting and decrypting files.

Installation

To install the package, run:

go get -v github.com/deeper-x/securefile

Usage

To encrypt data, run:

import "github.com/deeper-x/securefile"

key := "<YOUR PASSWD>"
_, err := securefile.Encrypt("/path/to/resource", []byte(key))
if err != nil {
	panic(err)
}

To decrypt data, run:

import "github.com/deeper-x/securefile"
            
key := "<YOUR PASSWD>"
_, err := securefile.Decrypt("/path/to/resource", []byte(key))
if err != nil {
	panic(err)
}

Test

go test -v ./...

License

MIT License

About

Tiny golang library for file encryption and decryption (AES-GCM). Based on crypto/cipher, crypto/rand, crypto/sha1, crypto/pbkdf2

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy