Skip to content

Commit

Permalink
Add safe storage methods
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhamp committed Sep 2, 2024
1 parent 6d7b038 commit fd0752b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@ public function promptTouchID(string $reason): bool
])->successful();
}

public function canEncrypt(): bool
{
return $this->client->get('system/can-encrypt')->json('result');
}

public function encrypt(string $string): string
{
$this->client->post('system/encrypt', [
'string' => $string,
])->json('result');
}

public function decrypt(string $string): string
{
$this->client->post('system/decrypt', [
'string' => $string,
])->json('result');
}

/**
* @return array<\Native\Laravel\DataObjects\Printer>
*/
Expand Down

0 comments on commit fd0752b

Please sign in to comment.