Wie Textdatei verschlĂŒsseln bzw verstecken?

Piktogramm schrieb:
Und wenn irgendwer auf dem Rechner sitzt und Rechte eskalieren kann, ist wirklich alles verloren.
Na, komm - wenn das schon der Fall ist ist alle Diskussion sinnlos 😉

Meine Prog muss arbeiten und es darf nichts als Datei zurĂŒckbleiben. Wenn denn doch live was abgegriffen werden kann ist das Betriebssystem schon ĂŒber die Wupper und auch dann ist nichts mehr zu diskutieren.

CN8
 
LotusXXL schrieb:
Ich verschlĂŒssele meine Passwörter in Powershell so (Code-Schnipsel):
Code:
$PwString = "$spw"

$EncPassw | ConvertFrom-SecureString -Key $PwKey | Out-File $PswFile -Force | Out-Null


Die machen da ja ein ziemliches Geheimnis daraus, wie verschlĂŒsselt wird.
Das Einzige das ich gefunden habe:

https://github.com/PowerShell/Power...ell.Security/security/SecureStringCommands.cs

/// <summary>
/// Defines the implementation of the 'ConvertFrom-SecureString' cmdlet.
/// This cmdlet exports a new SecureString -- one that represents
/// text that should be kept confidential. The text is encrypted
/// for privacy when being used, and deleted from computer memory
/// when no longer needed. When no key is specified, the command
/// uses the DPAPI to encrypt the string. When a key is specified, the
/// command uses the AES algorithm to encrypt the string.
/// </summary>


Aber kein kein Hinweis darauf ob AES128 oder AES256 verwendet wird
(oder hĂ€ngt das davon ab, ob man sich innerhalb oder außerhalb der
USA befindet).

Traue niemals einer VerschlĂŒsselungssoftware die du nicht selbst
geschrieben hast.
 
@III
https://learn.microsoft.com/en-us/p.../convertfrom-securestring?view=powershell-7.5
If an encryption key is specified by using the Key or SecureKey parameters, the AdvancedEncryption Standard (AES) encryption algorithm is used. The specified key must have a length of 128,192, or 256 bits because those are the key lengths supported by the AES encryption algorithm. If nokey is specified, the Windows Data Protection API (DPAPI) is used to encrypt the standard stringrepresentation.

Wobei das Gebastel mit diesen CMDlets ebenso eine mittlere Katastrope ist, wenn es darum geht (Text-)Dateien zu sichern.

Und Crypto selber implementieren, davon wird normalerweise abgeraten, eben weil die Eigenimplementierungen gernmal alle Lektionen vergessen, die die großen Projekte schon gemacht haben. So wie bei dir -.-
 
ZurĂŒck
Oben