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:
#!/usr/bin/env ruby | |
# | |
# When run against rails/rails commit 91684fb193a91671d682701cc1357e7b4b3fbe2b, | |
# this code produces the following output on my machine: | |
# | |
# long start @ 0.000 | |
# short start @ 0.510 | |
# short finish @ 1.511 | |
# short reported 1.511186 s |
/* AngularJS string.Format filter | |
* | |
* This filter provides string variable replacement similar to C# string.Format("{0}", "something"); | |
* | |
* Usage: {{ "From model: {0}; and a constant: {1};" | format:model.property:"constant":...:... }} | |
*/ | |
(function (angular) { | |
angular |
# spec/controllers/api_clients_controller_spec.rb | |
RSpec.describe APIClientsController, type: :controller do | |
let(:api_client) { mock_model(APIClient) } | |
context "when HTTP Digest auth credentials are invalid" do | |
before do | |
authenticate_with_http_digest("invalid_login", "invalid_password") do | |
get :index | |
end | |
end |
# <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
# |<---- Using a Maximum Of 50 Characters ---->| | |
# Explain why this change is being made | |
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
# Provide links or keys to any relevant tickets, articles or other resources | |
# Example: Github issue #23 |
import { createContext, useRef, useState } from 'react' | |
export const PyodideContext = createContext() | |
export default function PyodideProvider({ children }) { | |
const pyodide = useRef(null) | |
const hasLoadPyodideBeenCalled = useRef(false) | |
const [isPyodideLoading, setIsPyodideLoading] = useState(true) | |
return ( |