For symmetic encryption, you can use the following:
To encrypt:
openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt
To decrypt:
| 'use strict'; | |
| exports.handler = (event, context, callback) => { | |
| // Get request and request headers | |
| const request = event.Records[0].cf.request; | |
| const headers = request.headers; | |
| // Configure authentication | |
| const authUser = 'user'; | |
| const authPass = 'pass'; |
| import React from 'react' | |
| import { withRouter, Link } from 'react-router-dom' | |
| import { graphql, compose } from 'react-apollo' | |
| import { Formik } from 'formik' | |
| import Yup from 'yup' | |
| import FormWideError from '../elements/form/FormWideError' | |
| import TextInput from '../elements/form/TextInput' | |
| import Button from '../elements/form/Button' | |
| import { H2 } from '../elements/text/Headings' |
| FASTLANE_TEAM_ID = <your team id> | |
| FASTLANE_USER = <your user email> | |
| PRODUCE_APP_IDENTIFIER = com.fastlanescreencast.FastlaneScreencast | |
| CERT_APP_IDENTIFIER = com.fastlanescreencast.FastlaneScreencast | |
| SIGH_APP_IDENTIFIER = com.fastlanescreencast.FastlaneScreencast | |
| ANDROID_KEYSTORE_KEYSTORE_NAME = FastlaneScreencast.keystore | |
| ANDROID_KEYSTORE_ALIAS_NAME = fastlanescreencast | |
| ANDROID_KEYSTORE_PASSWORD = supersecret |
| # The command finds the most recent tag that is reachable from a commit. | |
| # If the tag points to the commit, then only the tag is shown. | |
| # Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
| # and the abbreviated object name of the most recent commit. | |
| git describe | |
| # With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
| git describe --abbrev=0 | |
| # other examples |
| package terraformer | |
| import ( | |
| "bytes" | |
| "errors" | |
| "path" | |
| "path/filepath" | |
| "...runtime" | |
| "...store" |
| # source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list | |
| # A list of available STUN server. | |
| stun.l.google.com:19302 | |
| stun1.l.google.com:19302 | |
| stun2.l.google.com:19302 | |
| stun3.l.google.com:19302 | |
| stun4.l.google.com:19302 | |
| stun01.sipphone.com | |
| stun.ekiga.net |