Skip to content

Commit 2a0dd0f

Browse files
committed
fix the phpBB MOD Text Template link
1 parent af305b1 commit 2a0dd0f

File tree

7 files changed

+564
-7
lines changed

7 files changed

+564
-7
lines changed

docs/c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ echo base64_encode($key->encrypt('test'));
8787
```
8888
<sup>_(sha1 is being used because the key is a 512-bit key from [Sample RSA Keys](/docs/rsa-keys); 512-bits is used for brevity but because it's 512-bits sha256 can't be used per the max size formulas discussed at [RSA::ENCRYPTION_OAEP](/docs/rsa#rsaencryption_oaep))_</sup>
8989

90-
To decrypt that with C / OpenSSL you'll need to make the following changes to the above C code (using the [phpBB MOD Text Template](https://wiki.phpbb.com/MOD_Text_Template)):
90+
To decrypt that with C / OpenSSL you'll need to make the following changes to the above C code (using the [phpBB MOD Text Template](phpbb.md#actions)):
9191

9292
```c
9393
#

docs/csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class Test
112112
```
113113
Note that `rsa.FromXmlString(key)` only supports XML formatted keys (as the name implies lol).
114114

115-
If you're using .NET Core 3.0+ / are _not_ using [Mono](https://en.wikipedia.org/wiki/Mono_(software)), [ImportRSAPrivateKey](https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.rsa.importrsaprivatekey?view=netcore-3.0) can be used to load PKCS1 formatted keys, using the following (untested) changes to the above (using the [phpBB MOD Text Template](https://wiki.phpbb.com/MOD_Text_Template)):
115+
If you're using .NET Core 3.0+ / are _not_ using [Mono](https://en.wikipedia.org/wiki/Mono_(software)), [ImportRSAPrivateKey](https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.rsa.importrsaprivatekey?view=netcore-3.0) can be used to load PKCS1 formatted keys, using the following (untested) changes to the above (using the [phpBB MOD Text Template](phpbb.md#actions)):
116116

117117
```c#
118118
#

docs/csr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ echo $x509->saveCSR($csr);
136136

137137
Domains can be added to a CSR by doing `$x509->setDomain('www.domain.tld')`. Note that whereas `$x509->setDomain()` can be used to add multiple domains for X.509 certificates only one domain can be added, with this approach, to CSRs. This is a limitation of phpseclib - not of the CSR format.
138138

139-
Multiple domains may be added by doing the following (using the [phpBB MOD Text Template](https://wiki.phpbb.com/MOD_Text_Template)):
139+
Multiple domains may be added by doing the following (using the [phpBB MOD Text Template](phpbb.md#actions)):
140140

141141
```php
142142
#

docs/go.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ v/Ow5T0q5gIJAiEAyS4RaI9YG8EWx/2w0T67ZUVAw8eOMB6BIUg0Xcu+3okCIBOs
7676
```
7777
(alternatively, one could call [`rsa.DecryptPKCS1v15`](https://pkg.go.dev/crypto/[email protected]#DecryptPKCS1v15) instead of [`privateKey.Decrypt`](https://pkg.go.dev/crypto/[email protected]#PrivateKey.Decrypt))
7878

79-
The above code only works with PKCS1 keys. If you want to load a PKCS8 key you'll need to make the following changes (using the [phpBB MOD Text Template](https://wiki.phpbb.com/MOD_Text_Template)):
79+
The above code only works with PKCS1 keys. If you want to load a PKCS8 key you'll need to make the following changes (using the [phpBB MOD Text Template](phpbb.md#actions)):
8080

8181
```go
8282
#

docs/java.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public class Test
111111
}
112112
```
113113

114-
The above code only works with PKCS1 keys. If you want to load a PKCS8 key you'll need to make the following changes (using the [phpBB MOD Text Template](https://wiki.phpbb.com/MOD_Text_Template)):
114+
The above code only works with PKCS1 keys. If you want to load a PKCS8 key you'll need to make the following changes (using the [phpBB MOD Text Template](phpbb.md#actions)):
115115

116116
```java
117117
#
@@ -309,7 +309,7 @@ public class Test
309309
}
310310
```
311311

312-
The above code only works with PKCS1 keys. If you want to load a PKCS8 key you'll need to make the following changes (using the [phpBB MOD Text Template](https://wiki.phpbb.com/MOD_Text_Template)):
312+
The above code only works with PKCS1 keys. If you want to load a PKCS8 key you'll need to make the following changes (using the [phpBB MOD Text Template](phpbb.md#actions)):
313313

314314
```java
315315
#

0 commit comments

Comments
 (0)