Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
qnd:data_manipulation [2022/12/20 21:02] – [Base64] mguptonqnd:data_manipulation [2023/08/14 18:11] (current) mgupton
Line 4: Line 4:
 ====== Base64 ====== ====== Base64 ======
 === Powershell to encode/decode base64 === === Powershell to encode/decode base64 ===
 +=== decode ===
 <code powershell> <code powershell>
 [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String((Get-Content data.txt))) [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String((Get-Content data.txt)))
 </code> </code>
 +=== encode ===
 <code powershell> <code powershell>
-[System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes((Get-Content data.txt))+[System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes((Get-Content data.txt)))
 </code> </code>
  
  • qnd/data_manipulation.1671570132.txt.gz
  • Last modified: 2022/12/20 21:02
  • by mgupton